<template>
    <div>
        <el-space>

            <el-button v-for="(vo,i) in data" :key="i"
                       :type="vo.type"
                       :icon="vo.icon"
                       @click="vo.event(list.selectKeys)"
                       v-auth="vo.auth"
                       plain
            >
                {{vo.title}}
            </el-button>
        </el-space>
    </div>
</template>

<script setup lang="ts">
import {inject} from "vue"
const props = defineProps(['data'])
const list = inject("list") as any
</script>

<style scoped>

</style>